

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<script>
function Person(){};
Person.prototype={
    constructor:Person,
    name:"jon",
    age:29,
    job:"chengxuyuan",
    sayName:function(){
        alert(this.name);
    }
    
}
var friend=new Person();
friend.sayName();
</script>
<body>
    
</body>
</html>